﻿using System;

namespace BuzzX8.Xmpp.Extensions
{
    public static class StanzaExtensions
    {
        public static DatagramElement Id(this DatagramElement stanza, object id)
        {
            stanza.Id = id;
            return stanza;
        }

        public static DatagramElement NewId(this DatagramElement stanza)
        {
            throw new NotImplementedException();
        }

        public static DatagramElement From(this DatagramElement stanza, JID from)
        {
            stanza.From = from;
            return stanza;
        }

        public static DatagramElement To(this DatagramElement stanza, JID to)
        {
            stanza.To = to;
            return stanza;
        }
    }
}
